package com.blrs.service.enterprise.info.impl;

import java.util.Date;
import java.util.List;

import com.blrs.service.enterprise.info.IEnterpriseSatisfiedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.blrs.mapper.EnterpriseSatisfiedMapper;
import com.blrs.domain.EnterpriseSatisfied;

/**
 * 客户满意度Service业务层处理
 * 
 * @author xiaoyang
 * @date 2025-01-13
 */
@Service
public class EnterpriseSatisfiedServiceImpl implements IEnterpriseSatisfiedService
{
    @Autowired
    private EnterpriseSatisfiedMapper enterpriseSatisfiedMapper;

    /**
     * 查询客户满意度
     * 
     * @param id 客户满意度主键
     * @return 客户满意度
     */
    @Override
    public EnterpriseSatisfied selectEnterpriseSatisfiedById(String id)
    {
        return enterpriseSatisfiedMapper.selectEnterpriseSatisfiedById(id);
    }

    /**
     * 查询客户满意度列表
     * 
     * @param enterpriseSatisfied 客户满意度
     * @return 客户满意度
     */
    @Override
    public List<EnterpriseSatisfied> selectEnterpriseSatisfiedList(EnterpriseSatisfied enterpriseSatisfied)
    {
        return enterpriseSatisfiedMapper.selectEnterpriseSatisfiedList(enterpriseSatisfied);
    }

    /**
     * 新增客户满意度
     * 
     * @param enterpriseSatisfied 客户满意度
     * @return 结果
     */
    @Override
    public int insertEnterpriseSatisfied(EnterpriseSatisfied enterpriseSatisfied)
    {
        enterpriseSatisfied.setCreateTime(new Date());
        return enterpriseSatisfiedMapper.insertEnterpriseSatisfied(enterpriseSatisfied);
    }

    /**
     * 修改客户满意度
     * 
     * @param enterpriseSatisfied 客户满意度
     * @return 结果
     */
    @Override
    public int updateEnterpriseSatisfied(EnterpriseSatisfied enterpriseSatisfied)
    {
        return enterpriseSatisfiedMapper.updateEnterpriseSatisfied(enterpriseSatisfied);
    }

    /**
     * 批量删除客户满意度
     * 
     * @param ids 需要删除的客户满意度主键
     * @return 结果
     */
    @Override
    public int deleteEnterpriseSatisfiedByIds(String[] ids)
    {
        return enterpriseSatisfiedMapper.deleteEnterpriseSatisfiedByIds(ids);
    }

    /**
     * 删除客户满意度信息
     * 
     * @param id 客户满意度主键
     * @return 结果
     */
    @Override
    public int deleteEnterpriseSatisfiedById(String id)
    {
        return enterpriseSatisfiedMapper.deleteEnterpriseSatisfiedById(id);
    }
}
